<?php
/**
 * Created by PhpStorm.
 * User: 王世鹏
 * Date: 2018/3/6
 * Time: 11:07
 */

namespace app\index\controller;



use think\Request;

class QingQiu
{
//    use \traits\controller\Jump;

    public function index($name='')
    {
        if ('thinkphp' == $name) {
            return redirect('http://thinkphp.cn');
//            $this->success('欢迎使用ThinkPHP
//        5.0','hello');
        } else {
//            $this->error('错误的name','guest');
            return 'Hello,ThinkPHP!';
        }
    }

    public function hello()
    {
        return 'Hello,ThinkPHP!';
    }

    public function guest()
    {
        return 'Hello,Guest!';
    }
//    public function show()
//    {
//        dump(input("cookie."));
//    }

}